Madd_Mugsy
|
Adept
|
|
|
Reged: 07/14/04
|
Posts: 220
|
Loc: Waiting for my XPS :D
|
|
|
I've tried casting a whole bunch of spells from script and console: some of my own, some from other mods, some base morrowind spells. None of them work!
I'm using the syntax: Cast "SpellNameHere" player
Also tried: Player->Cast "SpellNameHere" player
Am I doing something wrong? Am I missing something / some setting somewhere?
Thanks!
-------------------- If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler
Post Extras:
|
Mode_Locrian
|
Diviner
|
|
|
Reged: 10/07/02
|
Posts: 2084
|
Loc: Bjornholm, Rykith Lowlands Region
|
|
|
You are using the spell ID, and not the spell name, right? The name of the spell (that gets displayed ingame) will not work.. it must be the ID.
Also, what sort of object is casting on the player? I haven't had a lot of success using calls like Player -> cast, "spell", target either....
-------------------- My Website
Bards of Vvardenfell Thread (New Info 8/15/04)
Post Extras:
|
Simpleton
|
Acolyte
|
|
|
Reged: 07/02/04
|
Posts: 138
|
Loc: Earlham College, Richmond, IN
|
|
|
cast is screwy, in the original morrowind the target had to be a specific reference, so youd have to include the 8 reference digits at the end. Also, there are some weird things about actors having to be reset for them to cast twice or something. Taken from UESP: Quote:
Also, NPCs and creatures have to reset back to where they where when Cast was called before casting again.
-------------------- Do you have a burning desire to give me money?
Click Here to Donate
Post Extras:
|
Madd_Mugsy
|
Adept
|
|
|
Reged: 07/14/04
|
Posts: 220
|
Loc: Waiting for my XPS :D
|
|
|
Hmmm...
I am using the spell id.
I am just trying to cast a spell on the player. I don't care about NPC's (yet anyway).
Straight from Marc's Vampire Stat Cap fix:
Code:
if ( player->getSpellEffects "vampire skills by marc" == 0 )
cast "vampire skills by marc" player
endif
I tried using 'cast "vampire skills by marc" player' and it doesn't work The console recognizes the spell, but nothing gets cast. Same prob w/all other spells.
-------------------- If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler
Post Extras:
|
ManaUser
|
Master
|
|
|
Reged: 05/31/00
|
Posts: 6115
|
Loc: Long Beach, CA, USA
|
|
|
Buy who/what are you trying to make cast the spell? You can't use that command to just apply a spell to the player. It has to be cast from something else, like an NPC or an altar.
Post Extras:
|
Madd_Mugsy
|
Adept
|
|
|
Reged: 07/14/04
|
Posts: 220
|
Loc: Waiting for my XPS :D
|
|
|
Ah, crap. You're right. I can't just global cast a spell.
Can I just plop some small item into the player's inventory to cast spells then?
Or can I make the player cast spells he doesn't know?
-------------------- If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler
Post Extras:
|
ManaUser
|
Master
|
|
|
Reged: 05/31/00
|
Posts: 6115
|
Loc: Long Beach, CA, USA
|
|
|
Nope, but close. It doesn't work from the inventory either. What you could do though, is create an object at the players feet, and script it to disable+delete itself in after casting the spell.
[Edit] Or alternatively you may want to rethink your design and use an ability or curse which can be put on the player with AddSpell.
Edited by ManaUser (08/04/04 02:35 PM)
Post Extras:
|
Madd_Mugsy
|
Adept
|
|
|
Reged: 07/14/04
|
Posts: 220
|
Loc: Waiting for my XPS :D
|
|
|
Thanks!
-------------------- If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler
Post Extras:
|
Madd_Mugsy
|
Adept
|
|
|
Reged: 07/14/04
|
Posts: 220
|
Loc: Waiting for my XPS :D
|
|
|
One more question:
How many times can I call the cast function in one frame? Do I need to stagger the calls?
-------------------- If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler
Post Extras:
|
Madd_Mugsy
|
Adept
|
|
|
Reged: 07/14/04
|
Posts: 220
|
Loc: Waiting for my XPS :D
|
|
|
Finally, one more:
Is there a range limit? It just inside the current cell?
-------------------- If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler
Post Extras:
|
ManaUser
|
Master
|
|
|
Reged: 05/31/00
|
Posts: 6115
|
Loc: Long Beach, CA, USA
|
|
|
I've never tried calling two cast functions at once on the same object. You'll just have to try it. The range for a "touch" spell is the whole cell (and nearby cells if exterior I assume) target spells actually make a bolt, so of course they need line of sight.
Post Extras:
|
Madd_Mugsy
|
Adept
|
|
|
Reged: 07/14/04
|
Posts: 220
|
Loc: Waiting for my XPS :D
|
|
|
Excellent!
I have just successfully casted 10 spells simultaneously!
Thank you very much for your assistance!
-------------------- If you hate working for those 5x multipliers (and would maybe like to uncap all your stats and skills), check out the Madd Leveler
Post Extras:
|